package com.westa.smallshop.cart;

import com.westa.smallshop.common.BaseListView;
import com.westa.smallshop.common.BasePresenter;
import com.westa.smallshop.data.Base;

/**
 * Created by cy on 10/11/16.
 */

interface CartContract {
    interface View<O extends Base> extends BaseListView<Presenter, O> {

        void showOrderSubmitDialog();

        void dismissDialog();

        void showOrderSubmitSuccessful();

        void showOrderSubmitFailed();

        void showDeleteSuccessful();

        void showDeleteFiled();

        void showPasswordVerifyFailed();

    }

    interface Presenter extends BasePresenter {

        void refreshData();

        void orderSubmit(String password);

        void deleteFromCart(int goodsId);

    }
}
